package javaCode.chapter09.interface_;

public class Interface01 {
    public static void main(String[] args) {
        //创建 手机，相机对象
        Phone phone = new Phone();
        Camera camera = new Camera();
        //创建计算机对象
        Computer computer = new Computer();
        computer.work(phone); //把手机接入计算机
        System.out.println("---------------");

        computer.work(camera);
    }
}
